package cn.stylefeng.guns.modular.hx.order.mapper;

import cn.stylefeng.guns.modular.hx.order.entity.HxOrderPut;
import cn.stylefeng.guns.modular.hx.order.model.params.HxOrderPutParam;
import cn.stylefeng.guns.modular.hx.order.model.result.HxOrderPutResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 入库订单表 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2023-08-05
 */
public interface HxOrderPutMapper extends BaseMapper<HxOrderPut> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2023-08-05
     */
    List<HxOrderPutResult> customList(@Param("paramCondition") HxOrderPutParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2023-08-05
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") HxOrderPutParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2023-08-05
     */
    Page<HxOrderPutResult> customPageList(@Param("page") Page page, @Param("paramCondition") HxOrderPutParam paramCondition
    		, @Param("condition") String condition, @Param("operateId")Long operateId);

    Page<HxOrderPutResult> customQueryPageList(@Param("page") Page page, @Param("paramCondition") HxOrderPutParam paramCondition
    		, @Param("condition") String condition, @Param("operateId")Long operateId);

    Page<HxOrderPutResult> customReturnPageList(@Param("page") Page page, @Param("paramCondition") HxOrderPutParam paramCondition
    		, @Param("condition") String condition, @Param("operateId")Long operateId);

    Page<HxOrderPutResult> customreturnQueryPageList(@Param("page") Page page, @Param("paramCondition") HxOrderPutParam paramCondition
    		, @Param("condition") String condition, @Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2023-08-05
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") HxOrderPutParam paramCondition);

	boolean saveBatchList(@Param("list")List<HxOrderPutParam> list);

	String checkCustomerOrder(@Param("orderPutNumber")String orderPutNumber);

	HxOrderPut findByThelastone();

	HxOrderPutResult getPrintOrderPut(@Param("paramCondition")HxOrderPutParam param);

	HxOrderPutResult findBySpec(@Param("paramCondition")HxOrderPutParam param);

    List<HxOrderPutResult> findlistAllBySpec(@Param("paramCondition")HxOrderPutParam hxOrderPutParam, @Param("condition")String condition,@Param("operateId")Long operateId);

    HxOrderPutResult count(@Param("paramCondition")HxOrderPutParam hxOrderPutParam,@Param("condition") String condition, @Param("operateId")Long operateId);

    HxOrderPutResult count1(@Param("paramCondition")HxOrderPutParam hxOrderPutParam,@Param("condition") String condition, @Param("operateId")Long operateId);

    HxOrderPutResult count2(@Param("paramCondition")HxOrderPutParam hxOrderPutParam,@Param("condition") String condition, @Param("operateId")Long operateId);

    List<HxOrderPutResult> listAll1(@Param("paramCondition")HxOrderPutParam hxOrderPutParam,@Param("condition") String condition, @Param("operateId")Long operateId);

    List<HxOrderPutResult> list1(@Param("paramCondition")HxOrderPutParam hxOrderPutParam,@Param("condition") String condition, @Param("operateId")Long operateId);

    List<HxOrderPutResult> list2(@Param("paramCondition")HxOrderPutParam hxOrderPutParam,@Param("condition") String condition, @Param("operateId")Long operateId);
}
